package com.gree.scmservice.entity.saas.vo;

import com.gree.framework.entity.SaasTenant;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * Created by 180686 on 2021/9/6 16:30
 */
@Data
public class SaasTenantVo extends SaasTenant {

    @NotBlank(message = "确认密码不能为空")
    @Pattern(regexp = "^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)[\\s\\S]{8,16}$", message = "密码不合法")
    @ApiModelProperty("密码（暂不编码）")
    String password1;
}
